/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package csp;

/**
 *
 * @author Leandro
 */
public class Rendimiento {



    private long runtime;

    private int recursiones;

    private int backTracks;

    public void inicializarRuntime(){
        runtime=System.currentTimeMillis();
    }

    public void finalizarRuntime(){
        runtime=System.currentTimeMillis()- runtime;
    }

   
    public long getRuntime(){return runtime;}

    public long getRuntimeNS(){
    return runtime * 100000;
    }

    public void incRecursiones(){
        recursiones++;
    }

    public int getRecursiones(){return recursiones;}

    public void incBackTracks(){
        backTracks++;
    }

    public int getBackTracks(){return backTracks;}

    public String getReporte(){
    return ""+runtime+"\n"+""+getRuntimeNS()+"\n"+""+recursiones+"\n"+""+backTracks+"";
    }

}
